<?php
/**
 * Created by PhpStorm.
 * User: kavinga
 * Date: 1/12/14
 * Time: 12:26 PM
 */

namespace Application\Form;


use Zend\Form\Form;

class LoginForm extends Form
{
    public function __construct($name = null)
    {
        // we want to ignore the name passed
        parent::__construct('user');


        $this->add(array(
            'name' => 'email',
            'type' => 'Text',
            'options' => array(
//                'label' => 'Email Address',

            ),
            'attributes' => array(
                'placeholder' => 'Email Address',
            ),
        ));
        $this->add(array(
            'name' => 'password',
            'type' => 'Password',
            'options' => array(
//                'label' => 'Password',
            ),
            'attributes' => array(
                'placeholder' => 'Password',
            ),
        ));

        $this->add(array(
            'name' => 'submit',
            'type' => 'Submit',
            'attributes' => array(
                'value' => 'Register',
                'id' => 'submitbutton',
                'class' => 'btn btn-primary btn-large',
            ),
        ));
    }
} 